package com.peas.platform.common.core.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class RequestDto<T> {
    @ApiModelProperty(value = "条件")
    private T condition;
    @ApiModelProperty(value = "每页大小(默认10)", example = "10")
    private Integer pageSize;
    @ApiModelProperty(value = "当前页码(从1开始)", example = "1")
    private Integer pageNum;
    @ApiModelProperty(value = "排序字段名(不是数据库列名)", example = "id")
    private String sortField;
    @ApiModelProperty(value = "排序方式(asc顺序排序、desc倒序排序)")
    private String sortType;
}
